/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bookshop.service;

import com.bookshop.dao.IDaoCustomerLocal;
import com.bookshop.entity.Customer;
import javax.ejb.EJB;
import javax.ejb.Singleton;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;

/**
 *
 * @author Thibault
 */
@Singleton(mappedName = "com.bookshop.service")
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public class SecurityService {
    
    @EJB
    private IDaoCustomerLocal daoCustomer;
    
    public Customer findCustomerByLoginAndPassword(String login, String password) {
        return daoCustomer.findCustomerByLoginAndPassword(login, password);
    }
    
}
